<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增品牌</title>
    <link rel="stylesheet" href="../../font/iconfont.css">
    <link rel="stylesheet" href="../../lib/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <script src="../../lib/jquery/jquery-3.6.0.js"></script>
    <script src="../../lib/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <style>
        body {
            background-color: #F2F2F2;
        }

        .container {
            width: 1200px;
            height: 800px;
            padding: 20px 85px;
        }

        #backg {
            background-color: white;
            margin-top: 20px;
        }

        #backg>div:nth-child(2)>div:nth-child(2) {
            background-color: #F6F7F8;
            width: 680px;
        }

        .color {

            height: 135px;
            padding: 15px 15px;
        }

        .photo {
            width: 70px;
            height: 70px;
            background-color: white;
            margin-bottom: 15px;
            text-align: center;
            outline: 1px dashed gray;
            margin-top: 15px;
        }

        .photo>span {
            height: 40px;
            line-height: 40px;
        }

        #backg>div:nth-child(3)>input,
        #backg>div:nth-child(4)>input,
        #backg>div:nth-child(5)>input {
            height: 45px;
        }

        .anniu1,
        .anniu2 {
            width: 125px;
            height: 45px;
            line-height: 45px;
            text-align: center;
            outline: 1px solid rgb(214, 212, 212);
        }

        .anniu1 {
            background-color: #0099FF;
            color: white;
            margin-right: 20px;

        }

        .anniu2:hover {
            outline: 1px solid #0099FF;
            color: #0099FF;
        }

        .hangju,
        .hangju1 {
            margin-top: 20px;
        }

        .hangju>div {
            height: 45px;
            line-height: 45px;
        }

        .texet_size,
        .texet_size1 {
            /* font-size: 16px; */
            text-align: right;

        }

        .texet_size1 {
            color: gray;
        }

        #backg>div>div:nth-child(1) {
            margin-right: 20px;
        }

        #backg>div:last-child {
            margin-left: 10px;
        }
        
        .yanse {
            color: red;
        }

        /* 开启关闭按钮 */
        .icon_anniu {
            position: relative;
        }

        .icon-anniu_kaiqi {
            height: 40px;
            line-height: 40px;
            font-size: 36px;
            color: #0099FF;
            position: absolute;
            top: 5px;
        }

        .icon-anniu_guanbi {
            height: 40px;
            line-height: 40px;
            font-size: 36px;
            color: #CCCCCC;
            position: absolute;
            top: 5px;
            display: none;
        }
        /* 文本域固定大小 */
        #text_tarea {
            max-width: 680px;
            min-width: 680px;
            max-height: 180px;
            min-height: 180px;
        }
        .shuzi {
            color: rgb(204, 202, 202);
            position: absolute;
            bottom: 10px;
            margin-left: 820px;
        }
        
    </style>
</head>

<body>
    <div id="backg" class="container">
        <div class="row">
            <h3>新增商品品牌</h3>
        </div>
        <div class="row hangju1">
            <div class="col-md-2 col-xs-2">
                <p class="texet_size">品牌LOGO</p>
            </div>
            <div class="col-md-8 col-xs-8">
                <div class="add_tupian">
                    <div class="photo">
                        <span class="iconfont icon-x"></span>
                        <p>上传logo</p>
                        
                    </div>
                    <p>支持JPG、PNG、GIF格式的图片，大小请小于200K，尺寸200*120px</p>
                </div>
            </div>
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-xs-2 texet_size">
                <span class="yanse">*</span>
                <span>品牌名称</span>
            </div>
            <input type="text" placeholder="请输入品牌名称" class="col-md-6 col-xs-6">
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-xs-2 texet_size">
                <span class="yanse">*</span>
                <span>企业名称</span>
            </div>
            <input type="text" placeholder="请输入企业名称" class="col-md-6 col-xs-6">
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-xs-2">
                <p class="texet_size">排序</p>
            </div>
            <input type="text" placeholder="请输入大于0的整数" class="col-md-6 col-xs-6">
            <!-- <div>
                <p class="texet_size1">排序为空时，默认按新增时间倒序排在最前面</p>
            </div> -->
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-xs-2">
                <p class="texet_size">备注信息</p>
            </div>
            <!-- 文本域 -->
            <div class="texe_icon">
                <textarea name="text" id="text_tarea" cols="30" rows="4" class="col-md-6 col-xs-6"></textarea>
                <div class="shuzi">0/200</div>
            </div>
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-xs-2">
                <p class="texet_size">当前状态</p>
            </div>
            <!--关闭开启按钮 -->
            <div class="col-md-4 col-xs-4 texe_icon">
                <span class="iconfont icon-anniu_kaiqi"></span>
                <span class="iconfont icon-anniu_guanbi"></span>
            </div>
        </div>
        <div class="row hangju">
            <div class="col-md-2 col-md-offset-2 col-xs-2 col-xs-offset-2 anniu1">
                <a href="./shangpinfenlei.html"><div>提交</div></a>
            </div>
            <div class="col-md-2 col-xs-2 anniu2">
                <div>取消</div>
            </div>
        </div>
    </div>

    <!-- 关闭开启按钮的js -->
    <script>
        $('.icon-anniu_kaiqi').click(function () {
            $(this).css({
                display: "none",
            })
            $(this).siblings().css({
                display: "block",
            })
        })
        $('.icon-anniu_guanbi').click(function () {
            $(this).css({
                display: "none",
            })
            $(this).siblings().css({
                display: "block",
            })
        })
        $('.anniu1').parent().css({
            color: "black",
            textDecoration: "none"
        })
    </script>

</body>

</html>